package com.baichang.taoshunda.entity.em;

public enum UserBalanceState {

    下单(1), 退款(2), 退货(3), 拒绝接单(4);

    private Integer code;

    private UserBalanceState(Integer code) {
        this.code = code;
    }

    public static UserBalanceState valueOfCode(Integer code) {
        UserBalanceState[] states = UserBalanceState.values();
        for (UserBalanceState state : states) {
            if (state.getCode().equals(code)) {
                return state;
            }
        }
        return null;
    }

    public Integer getCode() {
        return this.code;
    }

    @Override
    public String toString() {
        return String.valueOf(this.code);
    }

}
